<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .pg-head{
            position: fixed;
            right: 0;
            left: 0;
            top:0;
            height: 48px;
            background-color: #2459a2;
            line-height: 49px;
        }
        .pg-body{
            margin-top: 50px;
        }
        .w{
            width: 980px;
            margin: 0 auto;
        }
        .pg-head .menu{
            display: inline-block;
            height: 48px;
            padding: 0 10px;
            /*(上右下左)*/
            color: white;
        }
        .pg-head .menu:hover{
            background-color: blue;
        }
    </style>
</head>
<body>
    <div class="pg-head">
        <div class="w">
            <a class="menu">LOGO</a>
            <a class="menu">全部</a>
            <a class="menu">42区</a>
            <a class="menu">段子</a>
            <a class="menu">1024</a>
        </div>
    </div>
    <div class="pg-body">
        <div class="w">

        </div>
    </div>
</body>
</html>